package com.example.dllo.my36kr.ui.activity.sonactivity;

import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.dllo.my36kr.R;
import com.example.dllo.my36kr.model.MineBean;
import com.example.dllo.my36kr.ui.activity.AbsBaseActivity;
import com.example.dllo.my36kr.ui.adapter.MineAdapter;

import java.util.ArrayList;

/**
 * 我是创业者
 * Created by CPC_272 on 16/8/23.
 */
public class IAmActivity extends AbsBaseActivity {
    private ListView ls_iam;
    private ArrayList<MineBean>list_iam;
    private ImageView back_iam;
    @Override
    protected int setLayout() {
        return R.layout.activity_iam;
    }

    @Override
    protected void initView() {
    ls_iam=byView(R.id.ls_iam);
        back_iam=byView(R.id.back_iam);
    }

    @Override
    protected void initData() {
      list_iam=new ArrayList<>();
        MineAdapter adapter=new MineAdapter(this);
        list_iam.add(new MineBean(""));
        list_iam.add(new MineBean(R.mipmap.discovery_icon_item1,"项目动态"));
        list_iam.add(new MineBean(""));
        list_iam.add(new MineBean(R.mipmap.news_icon_seek,"寻求报道"));
        list_iam.add(new MineBean(R.mipmap.find_icon_entrepreneurship_financing,"申请融资"));
        list_iam.add(new MineBean(""));
        list_iam.add(new MineBean(R.mipmap.find_icon_entrepreneurship_signup,"氪控件报名"));
        adapter.setData(list_iam);
         ls_iam.setAdapter(adapter);
         back_iam.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 finish();
             }
         });

    }
}
